package com.wn.mapper;

import com.wn.ov.CostOv;
import com.wn.pojo.Appointment;
import com.wn.pojo.Cost;

import java.util.List;

public interface CostMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Cost record);

    int insertSelective(Cost record);

    Cost selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Cost record);

    int updateByPrimaryKey(Cost record);

    //通过病人id查找费用
    Cost selectByPatientId(int patientId);


    //高级检索
    List<CostOv> superSearch(String superSearchKeyWord);

    //查询所有
    List<CostOv> selectAll();

    //通过患者id查询总费用
    CostOv getAllCostByPatientId(Integer id);

    //查询未审核的cost
    Cost selectByPatientIdAndUnchecked(Integer patientId);
}